# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-input-libinput
pkgver=1.5.0
pkgrel=0
pkgdesc="X.Org input driver based on libinput"
url="https://xorg.freedesktop.org"
arch="all"
license="MIT"
depends_dev="libinput-dev xorg-server-dev"
makedepends="$depends_dev eudev-dev xorgproto"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.x.org/releases/individual/driver/xf86-input-libinput-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
03090beb7c162fdf55e9bb9da41ffb8601b20047e4a53895bad27de47b3197fc920e710f26fa23e7322b367ab65fa56ba5f9a195ec69801529af3958632c2d6e  xf86-input-libinput-1.5.0.tar.xz
"
